package com.ruoyi.eoms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同管理对象 agreement
 * 
 * @author yuanpingfang
 * @date 2020-12-01
 */
public class Agreement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String agreementId;

    /** 产品编号 */
    private String productId;

    /** 客户经理编号 */
    @Excel(name = "客户经理编号")
    private String partyIdFrom;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String partyIdTo;

    /** 源角色类型 */
    private String roleTypeIdFrom;

    /** 目标角色类型 */
    private String roleTypeIdTo;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String agreementTypeId;

    /** 合同日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date agreementDate;

    /** 投资开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投资开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fromDate;

    /** 投资结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投资结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date thruDate;

    /** 简短描述 */
    @Excel(name = "简短描述")
    private String description;

    /** 备注 */
    @Excel(name = "备注")
    private String textData;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdatedStamp;

    /** 最后更新事务时间 */
    private Date lastUpdatedTxStamp;

    /** 创建时间 */
    private Date createdStamp;

    /** 创建事务时间 */
    private Date createdTxStamp;

    public void setAgreementId(String agreementId) 
    {
        this.agreementId = agreementId;
    }

    public String getAgreementId() 
    {
        return agreementId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setPartyIdFrom(String partyIdFrom) 
    {
        this.partyIdFrom = partyIdFrom;
    }

    public String getPartyIdFrom() 
    {
        return partyIdFrom;
    }
    public void setPartyIdTo(String partyIdTo) 
    {
        this.partyIdTo = partyIdTo;
    }

    public String getPartyIdTo() 
    {
        return partyIdTo;
    }
    public void setRoleTypeIdFrom(String roleTypeIdFrom) 
    {
        this.roleTypeIdFrom = roleTypeIdFrom;
    }

    public String getRoleTypeIdFrom() 
    {
        return roleTypeIdFrom;
    }
    public void setRoleTypeIdTo(String roleTypeIdTo) 
    {
        this.roleTypeIdTo = roleTypeIdTo;
    }

    public String getRoleTypeIdTo() 
    {
        return roleTypeIdTo;
    }
    public void setAgreementTypeId(String agreementTypeId) 
    {
        this.agreementTypeId = agreementTypeId;
    }

    public String getAgreementTypeId() 
    {
        return agreementTypeId;
    }
    public void setAgreementDate(Date agreementDate) 
    {
        this.agreementDate = agreementDate;
    }

    public Date getAgreementDate() 
    {
        return agreementDate;
    }
    public void setFromDate(Date fromDate) 
    {
        this.fromDate = fromDate;
    }

    public Date getFromDate() 
    {
        return fromDate;
    }
    public void setThruDate(Date thruDate) 
    {
        this.thruDate = thruDate;
    }

    public Date getThruDate() 
    {
        return thruDate;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTextData(String textData) 
    {
        this.textData = textData;
    }

    public String getTextData() 
    {
        return textData;
    }
    public void setLastUpdatedStamp(Date lastUpdatedStamp) 
    {
        this.lastUpdatedStamp = lastUpdatedStamp;
    }

    public Date getLastUpdatedStamp() 
    {
        return lastUpdatedStamp;
    }
    public void setLastUpdatedTxStamp(Date lastUpdatedTxStamp) 
    {
        this.lastUpdatedTxStamp = lastUpdatedTxStamp;
    }

    public Date getLastUpdatedTxStamp() 
    {
        return lastUpdatedTxStamp;
    }
    public void setCreatedStamp(Date createdStamp) 
    {
        this.createdStamp = createdStamp;
    }

    public Date getCreatedStamp() 
    {
        return createdStamp;
    }
    public void setCreatedTxStamp(Date createdTxStamp) 
    {
        this.createdTxStamp = createdTxStamp;
    }

    public Date getCreatedTxStamp() 
    {
        return createdTxStamp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("agreementId", getAgreementId())
            .append("productId", getProductId())
            .append("partyIdFrom", getPartyIdFrom())
            .append("partyIdTo", getPartyIdTo())
            .append("roleTypeIdFrom", getRoleTypeIdFrom())
            .append("roleTypeIdTo", getRoleTypeIdTo())
            .append("agreementTypeId", getAgreementTypeId())
            .append("agreementDate", getAgreementDate())
            .append("fromDate", getFromDate())
            .append("thruDate", getThruDate())
            .append("description", getDescription())
            .append("textData", getTextData())
            .append("lastUpdatedStamp", getLastUpdatedStamp())
            .append("lastUpdatedTxStamp", getLastUpdatedTxStamp())
            .append("createdStamp", getCreatedStamp())
            .append("createdTxStamp", getCreatedTxStamp())
            .toString();
    }
}
